import cn.yunhe.entity.Admin;
import cn.yunhe.service.IAdminService;
import cn.yunhe.service.impl.AdminService;
import lombok.Getter;
import lombok.Setter;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Getter
@Setter
public class Demo {

    @Autowired
    @Qualifier(value = "iAdminService")
    private IAdminService iAdminService;

    @Test
    public void test1(){
        List<Admin> list=iAdminService.getAll();
        for (Admin a:list
             ) {
            System.out.println(a);
        }
    }
}
